Repository navigation
Feat/prompt queue - #3
Closed
Wisawathep wants to merge 2 commits into
Closed
Wisawathep wants to merge 2 commits into
Wisawathep wants to merge 2 commits into
Conversation
While an agent turn is running, the composer had only two options for a follow-up: steer it into the running turn, or wait. This adds a client-side prompt queue so a user can line up follow-up prompts (up to 10 per thread) that each fire as their own fresh turn once the thread goes idle. Steering is preserved and unchanged — a separate "Queue" button holds a prompt instead of injecting it into the running turn. The queue drains only into a genuinely idle thread (it pauses on a running turn, a pending approval or user-input request, and a connecting/unavailable environment), so an auto-fired follow-up never buries blocked-on-you work. A failed dispatch restores the prompt to the head of the queue and pauses on it to avoid a hot retry loop. The queue is client-side and persisted per device (localStorage), keyed by the thread's scoped ref, so it survives reload; it drains for the thread open in the chat view. Queued prompts are text-only in this revision. The pure queueing rules and the idle-dispatch decision live in client-runtime so a future mobile surface can reuse them. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
While a turn runs, Enter now holds the prompt to run as its own turn after completion (matching the Queue button) instead of steering into the running turn. Restricted to the plain composing state -- never over a pending approval, input request, or plan follow-up prompt. Steering stays on the running-send button. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
|
This feature is already available in the fork version 0.0.42. Closing this PR 😊 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
Why
UI Changes
Checklist